const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports ={
    mode:'development',
    entry: './app.js',
    output: {
        clean: true
    },
    plugins: [
        new HtmlWebpackPlugin()
    ],
    devtool: 'cheap-module-source-map',
    module:{
        rules:[
            {
                test:/\.js$/,
                use:{
                    loader: 'babel-loader',
                    options:{
                        presets:['@babel/preset-env']
                    }
                }
            }
        ]
    }
}